package algorithm.classification.functionsandloss;


public class ExpLoss implements Loss
{
	public final double getDerivatedValue(double x) {
		double r=Math.exp(-x);
		if (r>10000) r=10000;
		return(-r);

	}
	public final double getValue(double x) 
	{
		double r=Math.exp(-x);
		if (r>10000) r=10000;
		return(r);
	}

}
